/**
 * @author : zzr
 * @description :
 * @date :
 */
public class Test3 {
    public static void main(String[] args) {
        MySingleList mySingleList5 = new MySingleList();
        mySingleList5.addLast(12);
        mySingleList5.addLast(23);
        mySingleList5.addLast(34);
        mySingleList5.addLast(45);
        mySingleList5.addLast(56);

        mySingleList5.createLoop();
        MySingleList.ListNode ret = mySingleList5.detectCycle();
        System.out.println(ret.val);

    }
}
